package com.middlegroup.payadmin.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.middlegroup.payadmin.pojo.po.ServiceType;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pc123
 * @since 2019-01-10
 */
public interface ServiceTypeMapper extends BaseMapper<ServiceType> {

    /**获取父类型
     * @return
     */
    @Select("select * from t_service_type where p_type='0'")
    List<ServiceType> listParServiceType();

    /**获取具体类型
     * @return
     */
    @Select("select * from t_service_type where p_type!='0'")
    List<ServiceType> listServiceType();

}
